package com.example.javaow.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @TableField("username")
    private String username;


    @TableField("password")
    private String password;


    @TableField("nickname")
    private String nickname;

    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;

    @TableField("status")
    private String status;

    // 注意：不包含 roles，由 MyBatis 映射处理
}